<?php include("include.php");?>
<?php
	$jobid = $_POST['jobid'];
	$title =   $_POST['title'];
	$description = $_POST['description'];
	$countryid = $_POST['countryid'];
	$job = job::getJobById($jobid);
	if(isset($job)){
		$job->setTitle($title);
		$job->setDescription($description);
		$job->setCountry(country::getCountryById($countryid));
		$job->save();
	}
?>
<meta http-equiv="REFRESH" content="0;url=dashboard.php?projectid=<?php echo $job->getProject()->getId();?>">
<?php include("includes/footer.php");?>